package bit;

public class demo1 {
    private int age;
    private String name;
    public static String classroom;

    public demo1(int age, String name) {
        this.age = age;
        this.name = name;
    }

        public void Function1(){
        System.out.println("非静态成员变量");
    }

        public static void Function2(){
            System.out.println("静态成员变量");
            demo1 student1 = new demo1(13,"李四");
            student1.Function1();
        }





    public String getname(){
        return this.name;

    }
    public void setname(String name){
        this.name = name;

    }



    @Override
    public String toString() {
        return "demo1{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }
}
